package com.wp.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用于回传用户列表给前端
 * */
@Data
@Accessors(chain = true)
public class UserResult implements Serializable {
    private static final long serialVersionUID = 6543020336078280282L;
    //uid
    private String uid;
    //用户名
    private String userName;
    //昵称
    private String nickName;
    //email
    private String email;
    //status
    private Integer status;
    //createTime
//    private Date createTime;
    /**
     * @TableField 配置需要填充的字段
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone="GMT+8")
    private Date createTime;



}
